function redirectProject(id) {
	var forma = document.getElementById("project_list_form");
	forma.action.value="spradmin";
	forma.id.value=id;
	doProcess("project_list_form");
}
function startEditProject(id,name,path) {
	var forma = document.getElementById("prj_form");
	forma.op.value='edit';
	forma.id.value=id;
	forma.name.value=name;
	forma.path.value=path;
	document.getElementById("project_edit_form").style.display = '';
	document.getElementById("project_add_form").style.display = 'none';
}
function cancelEditProject() {
	var forma = document.getElementById("prj_form");
	forma.op.value='add';
	forma.name.value='';
	forma.path.value='';
	document.getElementById("project_edit_form").style.display = 'none';
	document.getElementById("project_add_form").style.display = '';
}

function redirectSub(id) {
	var forma = document.getElementById("list_form");
	forma.action.value="genteam";
	forma.sid.value=id;
	doProcess("list_form");
}
function updateRequestSub(id,action) {
	var forma = document.getElementById("list_form");
	forma.op.value=action;
	forma.sid.value=id;
	doProcess("list_form");
}
function startEditSub(id,name,path) {
	var forma = document.getElementById("prj_form");
	forma.op.value='edit';
	forma.sid.value=id;
	forma.name.value=name;
	forma.path.value=path;
	document.getElementById("edit_form").style.display = '';
	document.getElementById("add_form").style.display = 'none';
}
function cancelEditSub() {
	var forma = document.getElementById("prj_form");
	forma.op.value='add';
	forma.name.value='';
	forma.path.value='';
	document.getElementById("edit_form").style.display = 'none';
	document.getElementById("add_form").style.display = '';
}